<template>
  <div class="map-dialog">
    <div class="map-dialog-box">
      <div class="map-dialog-title">{{ title }}</div>
      <div class="map-dialog-content">
        <div class="ct-row">xxxxxx总数：1,1111</div>
        <div class="ct-row">xxxxxx总数：1,1111</div>
        <div class="ct-row">xxxxxx总数：1,1111</div>
        <div class="ct-row">xxxxxx总数：1,1111</div>
        <div class="ct-row">xxxxxx总数：1,1111</div>
      </div>
    </div>

    <span class="line1"></span>
    <span class="line2"></span>
    <span class="line3"></span>
    <span class="line4"></span>
  </div>
</template>

<script setup>
const props = defineProps({
  title: {
    type: String,
    default: "",
  },
});
</script>

<style lang="scss" scoped>
.map-dialog {
  display: flex;
  padding: 18px;
  border: 1px solid #66b6fe;
  position: relative;
  background-color: rgba($color: #011522, $alpha: 0.8);

  .map-dialog-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #fff;
  }
  .map-dialog-title {
    font-size: 14px;
    line-height: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #fff;
  }
  .map-dialog-content {
    margin-top: 8px;
  }
  .ct-row {
    height: 28px;
    font-size: 14px;
    line-height: 28px;
  }
}

.line1 {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 17px;
  height: 17px;
  border-left: 4px solid #66b6fe;
  border-top: 4px solid #66b6fe;
}
.line2 {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 17px;
  height: 17px;
  border-right: 4px solid #66b6fe;
  border-top: 4px solid #66b6fe;
}
.line3 {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 17px;
  height: 17px;
  border-left: 4px solid #66b6fe;
  border-bottom: 4px solid #66b6fe;
}
.line4 {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 17px;
  height: 17px;
  border-right: 4px solid #66b6fe;
  border-bottom: 4px solid #66b6fe;
}
</style>
